/*!
      @File    test_alt_QXS.cpp
      @brief
      @author  Hideo Matsufuru
               $LastChangedBy: matufuru $
      @date    $LastChangedDate:: 2023-02-28 16:09:41 #$
      @version $LastChangedRevision: 2492 $
*/

#ifdef USE_ALT_QXS

#include "lib_alt_QXS/bridge_alt_qxs.h"
#define IMPL    QXS


#include "spectrum_Staggered_alt-tmpl.h"

namespace Test_alt_QXS {
  int test_all();
  int test_Spectrum_Staggered();
}

//====================================================================
int Test_alt_QXS::test_all()
{
  int result = 0;
  result += test_Spectrum_Staggered();
  vout.general("Test result for QXS = %d\n", result);
  return result;
}



//====================================================================
int Test_alt_QXS::test_Spectrum_Staggered()
{
  Spectrum_Staggered_alt<IMPL> test_staggered;

  std::string run_mode = "test";

  int result = 0;

  string file_cube =
    "test_alt_Spectrum_Staggered_Hadron2ptFunction_Wall_Cube.yaml";

  result += test_staggered.hadron_2ptFunction_Cube(file_cube,
                                                   "double_eo", run_mode);

  test_staggered.hadron_2ptFunction_Cube(file_cube,
                                         "float_eo", run_mode);

  return result;
}


//====================================================================

//====================================================================
#endif
//============================================================END=====
